#!/usr/bin/env python
#-*-coding:utf-8-*-
'第二章'
import sys
import decimal
reload(sys)  
sys.setdefaultencoding('utf-8')

#增量赋值
x = 1
x += 1
print x
#多重赋值
x = y = z = 1
print x
#多元赋值
(x,y,z) = (1,2,'ddd')
print x,y,z

#变量交换
x,y = 1,2
x,y = y,x
print x,y